package com.yan.domain;

public class Designer extends Employee{
    public int bouns;

    public Designer() {

    }

    public Designer(String id, String name, int age, int salary, int bouns) {
        super(id, name, age, salary);
        this.bouns = bouns;
    }

    public int getBouns() {
        return bouns;
    }

    public void setBouns(int bouns) {
        this.bouns = bouns;
    }

    @Override
    public void getInfo(){
        System.out.println("编号\t姓名\t年龄\t薪资\t奖金");
        System.out.println(id + "\t\t" + name + "\t\t" + age + "\t\t" + salary + "\t\t" + bouns);
    }
}
